home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / nShell-Pro / bin / match / match.rsrc / TEXT_16000_man general.txt < prev    next >
Text File  |  1994-11-27  |  599b  |  28 lines

  1.  
  2. NAME
  3.  
  4. match - type matching lines to standard output
  5.  
  6. SYNOPSIS
  7.  
  8. match -p 'pattern' [file...]
  9.  
  10. DESCRIPTION
  11.  
  12. This is a grep-like command.  Patterns are specified in shell-sytle wildcards, so a pattern of:
  13.  
  14. yak - will match all lines containing "yak"
  15. foo*bar - will match lines containing "foo" followed by "bar".
  16. [a-c]oo - will match lines containing "aoo", "boo" or "coo".
  17.  
  18. NOTE: It is important to put single quotes around patterns containing wildcards, so that the shell will not match them with file names.
  19.  
  20. RETURN CODES
  21.  
  22. <0    Error
  23. 0    Pattern found at least once
  24. 1    Pattern not found
  25.  
  26. SEE ALSO
  27.  
  28. grep